package com.chocus.core.service.upload;

import org.springframework.stereotype.Service;

import com.chocus.common.utils.FastDFSUtils;

/**
 * 上传文件实现类
 * 
 * @author Administrator
 *
 */
@Service("uploadService")
public class UploadServiceImpl implements UploadService{
	
	/**
	 * 上传文件
	 * 
	 * @param pic
	 * @param name
	 * @param size
	 * @return
	 * @throws Exception
	 */
	public String uploadPic(byte[] pic, String name, Long size) throws Exception {
		return FastDFSUtils.uploadPic(pic, name, size);
	}
}
